Can't Delete Folder, "Destination Path Too Long" Error in Windows 7
Can you list the full path to the file? Based on what you posted above it looks as though it's only 180 characters, but it's hard to be sure.How is your backup drive formatted? Is it NTFS or FAT32? Properties on the drive in the My Computer Explorer window should tell you.You may want to reformat it to NTFS if it's the latter. I believe NTFS allows longer path names. NTFS is also more reliable and secure.-Noel
December 1st, 2009 8:54pm

Can you list the full path to the file? Based on what you posted above it looks as though it's only 180 characters, but it's hard to be sure.How is your backup drive formatted? Is it NTFS or FAT32? Properties on the drive in the My Computer Explorer window should tell you.You may want to reformat it to NTFS if it's the latter. I believe NTFS allows longer path names. NTFS is also more reliable and secure.-Noel
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2009 8:54pm

Thanks for the reply. My backup drive is formatted NTFS, and the path to the folder I'm trying to delete is D:\Local. I renamed it to D:\Can'tDelete, but it still won't delete. The folder size is around 17 GB, but there are no files at all in the folder! The funny thing is that when I attempt to delete it, it says there are items in the folder as shown in the above error messages. I can reproduce this error by copying the folder C:\User\Username \AppData\Local\. This is the folder that won't get deleted. The strange thing is, it was copied from a Robocopy script to the backup drive, and I am able to completely delete all of the contents of the folder. However, no matter when I move this folder to or what I do to it, I am always unable to delete this folder. It's very strange. Brian Hall www.bhall.com
December 1st, 2009 9:41pm

Thanks for the reply. My backup drive is formatted NTFS, and the path to the folder I'm trying to delete is D:\Local. I renamed it to D:\Can'tDelete, but it still won't delete. The folder size is around 17 GB, but there are no files at all in the folder! The funny thing is that when I attempt to delete it, it says there are items in the folder as shown in the above error messages. I can reproduce this error by copying the folder C:\User\Username \AppData\Local\. This is the folder that won't get deleted. The strange thing is, it was copied from a Robocopy script to the backup drive, and I am able to completely delete all of the contents of the folder. However, no matter when I move this folder to or what I do to it, I am always unable to delete this folder. It's very strange. Brian Hall www.bhall.com
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2009 9:41pm

How do you put files on this backup drive? Are you using Windows Backup? If so, I've not found documentation on just how it organizes its files, but it's not inconceivable it is using long machine-generated names and folders.In any case, it sounds like there are hidden files there. In Explorer, Tools - Folder Options - View tab, click "Show hidden files", and also uncheck "[ ] Hide protected operating system files". I'm guessing there's a REALLY hugely deep folder in there somehow, and these settings could help you see it. You probably won't want to leave these settings enabled permanently.By the way, a nifty freewaretool for visualizing what folders have large files or collections of files in them is Scanner by Steffen Gerlach:http://www.steffengerlach.de/freeware/-Noel
December 1st, 2009 11:46pm

How do you put files on this backup drive? Are you using Windows Backup? If so, I've not found documentation on just how it organizes its files, but it's not inconceivable it is using long machine-generated names and folders.In any case, it sounds like there are hidden files there. In Explorer, Tools - Folder Options - View tab, click "Show hidden files", and also uncheck "[ ] Hide protected operating system files". I'm guessing there's a REALLY hugely deep folder in there somehow, and these settings could help you see it. You probably won't want to leave these settings enabled permanently.By the way, a nifty freewaretool for visualizing what folders have large files or collections of files in them is Scanner by Steffen Gerlach:http://www.steffengerlach.de/freeware/-Noel
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2009 11:46pm

The folder that I cannot delete was put there using a Robocopy script (using the /MIR command-line switch) that synchronizes my Windows profile. I showed the protected operating system files and saw that there are many copies of Application Data within itself (consuming a massive amount of storage). It seemed to go on literally forever, and as I navigated down the Application Data folders, the system got a little sluggish and weird. Here is a screen shot of only a handful: I drilled down many layers, and periodically moved the Application Data folder to the root of the D:\ and deleted it. Sometimes it would delete after a minute or two, and sometimes, it would show the same "Path too long" error as shown previously. However, I did receive this curious error while attempting to delete one of the sub folders: I've tried WinDirStat which I think is similar to Scanner, that also shows a graphical representation of the folders and disk space consumption. Unfortunately, it wasn't able to delete the files. At the moment, I'm still flailing around trying to strategically move and delete folders and sub folders, but I'm starting to get tired. This is like a bad nightmare.Brian Hall www.bhall.com
December 2nd, 2009 12:41am

The folder that I cannot delete was put there using a Robocopy script (using the /MIR command-line switch) that synchronizes my Windows profile. I showed the protected operating system files and saw that there are many copies of Application Data within itself (consuming a massive amount of storage). It seemed to go on literally forever, and as I navigated down the Application Data folders, the system got a little sluggish and weird. Here is a screen shot of only a handful: I drilled down many layers, and periodically moved the Application Data folder to the root of the D:\ and deleted it. Sometimes it would delete after a minute or two, and sometimes, it would show the same "Path too long" error as shown previously. However, I did receive this curious error while attempting to delete one of the sub folders: I've tried WinDirStat which I think is similar to Scanner, that also shows a graphical representation of the folders and disk space consumption. Unfortunately, it wasn't able to delete the files. At the moment, I'm still flailing around trying to strategically move and delete folders and sub folders, but I'm starting to get tired. This is like a bad nightmare.Brian Hall www.bhall.com
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2009 12:41am

I did notice that within C:\Users\UserName \AppData\Local\ there is a shortcut called Application Data . This appears to be the default for all Windows 7 user accounts. Perhaps Robocopy is copying not just the shortcut.lnk file, but the actual destination and its contents and doing this over and over until the disk fills up (which is what my last few Robocopy scripts have been doing). If you're curious, my Robocopy script simply does the following: robocopy "C:\Users\UserName" "D:\Nightly\UserName" /MIR /R:3 /W:5 /NP /TEE /LOG+:"C:\Users\UserName\Desktop\BackupLog.txt" I'm still unable to delete the folder.Brian Hall www.bhall.com
December 2nd, 2009 12:52am

I did notice that within C:\Users\UserName \AppData\Local\ there is a shortcut called Application Data . This appears to be the default for all Windows 7 user accounts. Perhaps Robocopy is copying not just the shortcut.lnk file, but the actual destination and its contents and doing this over and over until the disk fills up (which is what my last few Robocopy scripts have been doing). If you're curious, my Robocopy script simply does the following: robocopy "C:\Users\UserName" "D:\Nightly\UserName" /MIR /R:3 /W:5 /NP /TEE /LOG+:"C:\Users\UserName\Desktop\BackupLog.txt" I'm still unable to delete the folder.Brian Hall www.bhall.com
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2009 12:52am

Hm, I wouldn't expect to see many copies of folders with the same name...I think I'd do a CHKDSK D: next and see whether there's anyfile system corruption there.-Noel
December 2nd, 2009 12:55am

Hm, I wouldn't expect to see many copies of folders with the same name...I think I'd do a CHKDSK D: next and see whether there's anyfile system corruption there.-Noel
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2009 12:55am

CHKDSK returned no errors on drive D:Brian Hall www.bhall.com
December 2nd, 2009 12:56am

CHKDSK returned no errors on drive D:Brian Hall www.bhall.com
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2009 12:56am

I've seen other similar posts, but none of them provides an actual solution that has worked for this ridiculous problem I'm having. I'm simply trying to delete a folder from my backup drive in Windows 7, but Windows shows the error, "Destination Path Too Long: The file name(s) would be too long for the destination folder. You can shorten the file name and try again, or try a location that has a shorter path. " as shown here: Then, after I "Skip" this item, I get another similar error, but this time it says, "Source Path Too Long: The source file name(s) are larger than is supported by the file system. Try moving to a location which has a shorter path name, or try renaming to shorter name(s) before attempting this operation. " as shown here: So, I deleted all sub folders and files in an attempt to work around this problem. There is one folder, that is actually completely empty, that refuses to be deleted. I moved this folder to the root of my drive, I even tried renaming it, but it never gets deleted. Seriously, I just want to delete this folder. I've tried third-party utilities, checked the disk for errors, tried deleting the folder from the command line, and nothing has been able to delete this folder. It seems like a cutting-edge operating system should be able to handle a simple delete operation without so much trouble. Brian Hall www.bhall.com
December 2nd, 2009 4:47am

Can you list the full path to the file? Based on what you posted above it looks as though it's only 180 characters, but it's hard to be sure.How is your backup drive formatted? Is it NTFS or FAT32? Properties on the drive in the My Computer Explorer window should tell you.You may want to reformat it to NTFS if it's the latter. I believe NTFS allows longer path names. NTFS is also more reliable and secure.-Noel
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2009 4:54am

Thanks for the reply. My backup drive is formatted NTFS, and the path to the folder I'm trying to delete is D:\Local. I renamed it to D:\Can'tDelete, but it still won't delete. The folder size is around 17 GB, but there are no files at all in the folder! The funny thing is that when I attempt to delete it, it says there are items in the folder as shown in the above error messages. I can reproduce this error by copying the folder C:\User\Username \AppData\Local\. This is the folder that won't get deleted. The strange thing is, it was copied from a Robocopy script to the backup drive, and I am able to completely delete all of the contents of the folder. However, no matter when I move this folder to or what I do to it, I am always unable to delete this folder. It's very strange. Brian Hall www.bhall.com
December 2nd, 2009 5:41am

How do you put files on this backup drive? Are you using Windows Backup? If so, I've not found documentation on just how it organizes its files, but it's not inconceivable it is using long machine-generated names and folders.In any case, it sounds like there are hidden files there. In Explorer, Tools - Folder Options - View tab, click "Show hidden files", and also uncheck "[ ] Hide protected operating system files". I'm guessing there's a REALLY hugely deep folder in there somehow, and these settings could help you see it. You probably won't want to leave these settings enabled permanently.By the way, a nifty freewaretool for visualizing what folders have large files or collections of files in them is Scanner by Steffen Gerlach:http://www.steffengerlach.de/freeware/-Noel
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2009 7:46am

The folder that I cannot delete was put there using a Robocopy script (using the /MIR command-line switch) that synchronizes my Windows profile. I showed the protected operating system files and saw that there are many copies of Application Data within itself (consuming a massive amount of storage). It seemed to go on literally forever, and as I navigated down the Application Data folders, the system got a little sluggish and weird. Here is a screen shot of only a handful: I drilled down many layers, and periodically moved the Application Data folder to the root of the D:\ and deleted it. Sometimes it would delete after a minute or two, and sometimes, it would show the same "Path too long" error as shown previously. However, I did receive this curious error while attempting to delete one of the sub folders: I've tried WinDirStat which I think is similar to Scanner, that also shows a graphical representation of the folders and disk space consumption. Unfortunately, it wasn't able to delete the files. At the moment, I'm still flailing around trying to strategically move and delete folders and sub folders, but I'm starting to get tired. This is like a bad nightmare.Brian Hall www.bhall.com
December 2nd, 2009 8:41am

I did notice that within C:\Users\UserName \AppData\Local\ there is a shortcut called Application Data . This appears to be the default for all Windows 7 user accounts. Perhaps Robocopy is copying not just the shortcut.lnk file, but the actual destination and its contents and doing this over and over until the disk fills up (which is what my last few Robocopy scripts have been doing). If you're curious, my Robocopy script simply does the following: robocopy "C:\Users\UserName" "D:\Nightly\UserName" /MIR /R:3 /W:5 /NP /TEE /LOG+:"C:\Users\UserName\Desktop\BackupLog.txt" I'm still unable to delete the folder.Brian Hall www.bhall.com
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2009 8:52am

Hm, I wouldn't expect to see many copies of folders with the same name...I think I'd do a CHKDSK D: next and see whether there's anyfile system corruption there.-Noel
December 2nd, 2009 8:55am

CHKDSK returned no errors on drive D:Brian Hall www.bhall.com
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2009 8:56am

I finally deleted all of the folders by drilling down to the almost endless copies of Application Data and moving subsequent levels to the root of the D:\ and deleting piece by piece. I have no idea how those copies were made in the first place, and secondly, why Windows makes it so hard to delete such a nasty, unwieldy folder structure. Ugh!Brian Hall www.bhall.com
December 2nd, 2009 9:03am

Brain, Could be that the robocopy script causes the recursion in the target directory tree because of junction points in the source. I'm pretty sure the windows \User directory tree has junctions that could create this situation. You may wish to try adding the "/XJ" option to the robocopy command so that it doesn't follow junctions.
Free Windows Admin Tool Kit Click here and download it now
December 25th, 2009 11:09pm

Brain,Could be that the robocopy script causes the recursion in the target directory tree because of junction points in the source. I'm pretty sure the windows \User directory tree has junctions that could create this situation. You may wish to try adding the "/XJ" option to the robocopy command so that it doesn't follow junctions. It would appear the issue is a length limitation in the folder structure. I created 2 batch files in order to resolve the issue quickly. the /XJ option should prevent the issue in future. After running trial.cmd you can delete from the top level folder without errors. The messy part is that you must "end task" on the command window in order to stop the infinite loop. Control C does not work. In my scenario there were 2 more folders with the same problem 5 or 10 levels down from the 1st "Application Data" that I manually renamed as well. Until the tree length is short enough Windows was too unstable to find the last 2 anomolies manually. Prompt:\copy con trial.cmd ren "Application Data" a Prompt:\cd a Prompt:\trial2.cmd ^Z Prompt:\copy trial.cmd trial2.cmd Prompt:\edit trial2.cmd ren "Application Data" a Prompt:\cd a Prompt:\trial.cmd Save and exit.
March 23rd, 2010 1:19am

Brain,Could be that the robocopy script causes the recursion in the target directory tree because of junction points in the source. I'm pretty sure the windows \User directory tree has junctions that could create this situation. You may wish to try adding the "/XJ" option to the robocopy command so that it doesn't follow junctions. It would appear the issue is a length limitation in the folder structure. I created 2 batch files in order to resolve the issue quickly. the /XJ option should prevent the issue in future. After running trial.cmd you can delete from the top level folder without errors. The messy part is that you must "end task" on the command window in order to stop the infinite loop. Control C does not work. In my scenario there were 2 more folders with the same problem 5 or 10 levels down from the 1st "Application Data" that I manually renamed as well. Until the tree length is short enough Windows was too unstable to find the last 2 anomolies manually. Prompt:\copy con trial.cmd ren "Application Data" a Prompt:\cd a Prompt:\trial2.cmd ^Z Prompt:\copy trial.cmd trial2.cmd Prompt:\edit trial2.cmd ren "Application Data" a Prompt:\cd a Prompt:\trial.cmd Save and exit.
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2010 1:19am

Brain,Could be that the robocopy script causes the recursion in the target directory tree because of junction points in the source. I'm pretty sure the windows \User directory tree has junctions that could create this situation. You may wish to try adding the "/XJ" option to the robocopy command so that it doesn't follow junctions. It would appear the issue is a length limitation in the folder structure. I created 2 batch files in order to resolve the issue quickly. the /XJ option should prevent the issue in future. After running trial.cmd you can delete from the top level folder without errors. The messy part is that you must "end task" on the command window in order to stop the infinite loop. Control C does not work. In my scenario there were 2 more folders with the same problem 5 or 10 levels down from the 1st "Application Data" that I manually renamed as well. Until the tree length is short enough Windows was too unstable to find the last 2 anomolies manually. Prompt:\copy con trial.cmd ren "Application Data" a Prompt:\cd a Prompt:\trial2.cmd ^Z Prompt:\copy trial.cmd trial2.cmd Prompt:\edit trial2.cmd ren "Application Data" a Prompt:\cd a Prompt:\trial.cmd Save and exit.
March 23rd, 2010 8:19am

Thank you so much for the great responses, especially the "/XJ" option in Robocopy to prevent the following of junction points!Brian Hall www.bhall.com
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2010 12:02pm

Thank you so much for the great responses, especially the "/XJ" option in Robocopy to prevent the following of junction points!Brian Hall www.bhall.com
March 23rd, 2010 12:02pm

Thank you so much for the great responses, especially the "/XJ" option in Robocopy to prevent the following of junction points!Brian Hall www.bhall.com
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2010 7:02pm

Hi all. I was having the same exact problem, for the same exact reason--robocopy was following the junction "Application Data" and creating what seemed like an infinite number of folder copies. My solution was to delete the offending folder from within Cygwin using a standard unix delete command: `rm -rf foldername'. Worked like a charm! Thanks, hs
May 25th, 2010 7:21am

Thanks for the Cygwin tip. I was going crazy. This did it in no time flat.
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2010 1:18am

Thanks for the Cygwin tip. I was going crazy. This did it in no time flat.
July 7th, 2010 1:18am

Thanks for the Cygwin tip. I was going crazy. This did it in no time flat.
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2010 8:18am

I use vista but this was the only post online I could find which involved this error. I had exactly the same one - I eventually ended up renaming every sub-folder with one letter (I went through the alphabet) and just kept renaming and attempting deletion until it eventually gave in. It took a long while but I was victorious - This saves downloading any software or messing with boot commands and things. Just thought I'd put it here for anyone else who stumbles upon this silly problem. Lorraine
July 7th, 2010 6:06pm

I use vista but this was the only post online I could find which involved this error. I had exactly the same one - I eventually ended up renaming every sub-folder with one letter (I went through the alphabet) and just kept renaming and attempting deletion until it eventually gave in. It took a long while but I was victorious - This saves downloading any software or messing with boot commands and things. Just thought I'd put it here for anyone else who stumbles upon this silly problem. Lorraine
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2010 6:06pm

I use vista but this was the only post online I could find which involved this error. I had exactly the same one - I eventually ended up renaming every sub-folder with one letter (I went through the alphabet) and just kept renaming and attempting deletion until it eventually gave in. It took a long while but I was victorious - This saves downloading any software or messing with boot commands and things. Just thought I'd put it here for anyone else who stumbles upon this silly problem. Lorraine
July 8th, 2010 1:06am

This is all great - if your a programmer? I'm just a stupid user so would you mind giving me a step-by-step on how to execute this copmmand from the start button? It blows me away that MS would even allow thier new OS to operate like this without giving an end-user the ability to delete a file that was placed in "windows.old" when a fresh copy of the OS OS was installed. ANything you can do to help would be appreciated; the offending file was left on my C:\Windows.old\Users\Steven E. Gilbert\Desktop Apparently it won't let me change its protection from read only either. Thanks, S
Free Windows Admin Tool Kit Click here and download it now
July 11th, 2010 12:20pm

This is all great - if your a programmer? I'm just a stupid user so would you mind giving me a step-by-step on how to execute this copmmand from the start button? It blows me away that MS would even allow thier new OS to operate like this without giving an end-user the ability to delete a file that was placed in "windows.old" when a fresh copy of the OS OS was installed. ANything you can do to help would be appreciated; the offending file was left on my C:\Windows.old\Users\Steven E. Gilbert\Desktop Apparently it won't let me change its protection from read only either. Thanks, S
July 11th, 2010 12:20pm

This is all great - if your a programmer? I'm just a stupid user so would you mind giving me a step-by-step on how to execute this copmmand from the start button? It blows me away that MS would even allow thier new OS to operate like this without giving an end-user the ability to delete a file that was placed in "windows.old" when a fresh copy of the OS OS was installed. ANything you can do to help would be appreciated; the offending file was left on my C:\Windows.old\Users\Steven E. Gilbert\Desktop Apparently it won't let me change its protection from read only either. Thanks, S
Free Windows Admin Tool Kit Click here and download it now
July 11th, 2010 7:20pm

I have this issue too. NOTE THAT THIS IS JUST YET ANOTHER BUGGY BUGGY WIN7 PROBLEM. This is an exploit I plan to publish: You can create directories programatically that the os can not delete! Great for malware!!!. Thanks Steve! You are doing a great job!
July 24th, 2010 2:01pm

I have this issue too. NOTE THAT THIS IS JUST YET ANOTHER BUGGY BUGGY WIN7 PROBLEM. This is an exploit I plan to publish: You can create directories programatically that the os can not delete! Great for malware!!!. Thanks Steve! You are doing a great job!
Free Windows Admin Tool Kit Click here and download it now
July 24th, 2010 2:01pm

I have this issue too. NOTE THAT THIS IS JUST YET ANOTHER BUGGY BUGGY WIN7 PROBLEM. This is an exploit I plan to publish: You can create directories programatically that the os can not delete! Great for malware!!!. Thanks Steve! You are doing a great job!
July 24th, 2010 9:01pm

Jim D_ This is not a new problem and it is not confined to build 7600, or for that matter the OS at all, but rather a limitation that is clearly documented in the all NTFS specifications, including the latest NTFS revisions. Your statement about malware is way off target and represents that you do not have a sufficient understanding of computer file systems, file system forensics or engineering and would be woefully unqualified to publish anything about it. It's easy to say this is a bug, or a exploitable aspect--but if they planned that you can only have paths of certain lengths and files names of certain lengths (remember a directory is just a file name itself), that isn't a bug because it was expected and designed that way. What would your limit be? Something double? There you would run into problems as the MFT entries, B-trees, index nodes, (just to name a few) etc. would all have to be totally revamped resulting in a huge expenditure of resources so you can put a folder in a folder in a folder in a folder in a folder in a folder ad infinitum then have an overly descriptive filename...?!? Get a book, and make a concerted effort to understand why things were done a certain way. The malware comment...the directories can be deleted, it just might take clever programmers who have to write applications to help those of you who can't figure this simple on out. If all else fails, edit the MFT and any non-resident attributes for the file name. If this was a the big problem we faced with malware, the problem of malicious code would be solved by 22:00 EDT today. I beg you to pardon the cliche, but this isn't rocket science. Respectfully, J. C.
Free Windows Admin Tool Kit Click here and download it now
August 21st, 2010 3:00pm

Jim D_ This is not a new problem and it is not confined to build 7600, or for that matter the OS at all, but rather a limitation that is clearly documented in the all NTFS specifications, including the latest NTFS revisions. Your statement about malware is way off target and represents that you do not have a sufficient understanding of computer file systems, file system forensics or engineering and would be woefully unqualified to publish anything about it. It's easy to say this is a bug, or a exploitable aspect--but if they planned that you can only have paths of certain lengths and files names of certain lengths (remember a directory is just a file name itself), that isn't a bug because it was expected and designed that way. What would your limit be? Something double? There you would run into problems as the MFT entries, B-trees, index nodes, (just to name a few) etc. would all have to be totally revamped resulting in a huge expenditure of resources so you can put a folder in a folder in a folder in a folder in a folder in a folder ad infinitum then have an overly descriptive filename...?!? Get a book, and make a concerted effort to understand why things were done a certain way. The malware comment...the directories can be deleted, it just might take clever programmers who have to write applications to help those of you who can't figure this simple on out. If all else fails, edit the MFT and any non-resident attributes for the file name. If this was a the big problem we faced with malware, the problem of malicious code would be solved by 22:00 EDT today. I beg you to pardon the cliche, but this isn't rocket science. Respectfully, J. C.
August 21st, 2010 3:00pm

Jim D_ This is not a new problem and it is not confined to build 7600, or for that matter the OS at all, but rather a limitation that is clearly documented in the all NTFS specifications, including the latest NTFS revisions. Your statement about malware is way off target and represents that you do not have a sufficient understanding of computer file systems, file system forensics or engineering and would be woefully unqualified to publish anything about it. It's easy to say this is a bug, or a exploitable aspect--but if they planned that you can only have paths of certain lengths and files names of certain lengths (remember a directory is just a file name itself), that isn't a bug because it was expected and designed that way. What would your limit be? Something double? There you would run into problems as the MFT entries, B-trees, index nodes, (just to name a few) etc. would all have to be totally revamped resulting in a huge expenditure of resources so you can put a folder in a folder in a folder in a folder in a folder in a folder ad infinitum then have an overly descriptive filename...?!? Get a book, and make a concerted effort to understand why things were done a certain way. The malware comment...the directories can be deleted, it just might take clever programmers who have to write applications to help those of you who can't figure this simple on out. If all else fails, edit the MFT and any non-resident attributes for the file name. If this was a the big problem we faced with malware, the problem of malicious code would be solved by 22:00 EDT today. I beg you to pardon the cliche, but this isn't rocket science. Respectfully, J. C.
Free Windows Admin Tool Kit Click here and download it now
August 21st, 2010 10:00pm

I tried to download and install Cygwin but it was up to several GB so I cancelled it. There didn't appear to be anything there I could run. I need to get rid of the folder on my external backup drive. Yes, it was created by a ROBOCOPY backup of a user folder. The nested folders are hidden, and the hidden attribute cannot be removed. The files cannot be renamed as they do not "exist". In a command window, I can view all this using but everything results in an error. > dir H:\USERS_PAT\AppData\Local\ /s /on The directory name H:\USER_PAT\AppData\Local\Application Data\Application Data \Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Applic ation Data\Application Data\Application Data is too long.
August 23rd, 2010 10:18pm

I tried to download and install Cygwin but it was up to several GB so I cancelled it. There didn't appear to be anything there I could run. I need to get rid of the folder on my external backup drive. Yes, it was created by a ROBOCOPY backup of a user folder. The nested folders are hidden, and the hidden attribute cannot be removed. The files cannot be renamed as they do not "exist". In a command window, I can view all this using but everything results in an error. > dir H:\USERS_PAT\AppData\Local\ /s /on The directory name H:\USER_PAT\AppData\Local\Application Data\Application Data \Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Applic ation Data\Application Data\Application Data is too long.
Free Windows Admin Tool Kit Click here and download it now
August 23rd, 2010 10:18pm

I tried to download and install Cygwin but it was up to several GB so I cancelled it. There didn't appear to be anything there I could run. I need to get rid of the folder on my external backup drive. Yes, it was created by a ROBOCOPY backup of a user folder. The nested folders are hidden, and the hidden attribute cannot be removed. The files cannot be renamed as they do not "exist". In a command window, I can view all this using but everything results in an error. > dir H:\USERS_PAT\AppData\Local\ /s /on The directory name H:\USER_PAT\AppData\Local\Application Data\Application Data \Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Applic ation Data\Application Data\Application Data is too long.
August 24th, 2010 5:18am

I finally deleted all of the folders by drilling down to the almost endless copies of Application Data and moving subsequent levels to the root of the D:\ and deleting piece by piece. I have no idea how those copies were made in the first place, and secondly, why Windows makes it so hard to delete such a nasty, unwieldy folder structure. Ugh! Brian Hall www.bhall.com next time it happens try this At a command prompt with elevated level (Start -> type cmd -> rightclick cmd > run as administrator) try the following: cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername This command should delete any folder whatsoever ceasar, CES Free Tech Help
Free Windows Admin Tool Kit Click here and download it now
September 17th, 2010 3:36am

I finally deleted all of the folders by drilling down to the almost endless copies of Application Data and moving subsequent levels to the root of the D:\ and deleting piece by piece. I have no idea how those copies were made in the first place, and secondly, why Windows makes it so hard to delete such a nasty, unwieldy folder structure. Ugh! Brian Hall www.bhall.com next time it happens try this At a command prompt with elevated level (Start -> type cmd -> rightclick cmd > run as administrator) try the following: cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername This command should delete any folder whatsoever ceasar, CES Free Tech Help
September 17th, 2010 3:36am

I finally deleted all of the folders by drilling down to the almost endless copies of Application Data and moving subsequent levels to the root of the D:\ and deleting piece by piece. I have no idea how those copies were made in the first place, and secondly, why Windows makes it so hard to delete such a nasty, unwieldy folder structure. Ugh! Brian Hall www.bhall.com next time it happens try this At a command prompt with elevated level (Start -> type cmd -> rightclick cmd > run as administrator) try the following: cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername This command should delete any folder whatsoever ceasar, CES Free Tech Help
Free Windows Admin Tool Kit Click here and download it now
September 17th, 2010 10:36am

J.C. This is not a new problem and it is not confined to build 7600, or for that matter the OS at all, but rather a limitation that is clearly documented in the all NTFS specifications, including the latest NTFS revisions. J.C., it is an OS limitation and NOT a ntfs limitation, an amazingly stupid one if you ask me, but could be for backwards compatibility, have a bit of a read of the info below for more technical information, but the basic issue is all windows API's including 7 are limited to 256 character path's, ntfs can support up to 32767 characters long, which is very long!! You can purchase, not sure about freeware, filemanagers that do not have this limitation... Edit: you can use richcopy to copy to a different location, then delete, not perfect but easier... http://technet.microsoft.com/en-gb/magazine/2009.04.utilityspotlight.aspx Unfortunately this time you can’t blame the kernel, but you can blame the windows API's, even in Win7 I believe, I am guessing this is for backwards compatibility. From WIKI – NTFS File names are limited to 255 UTF-16 code words. Certain names are reserved in the volume root directory and cannot be used for files. The NT kernel limits full paths to 32,767 UTF-16 code words. Have a look at this link, it does show you how to access long path, by typing "\\?\D:\<very long path>" http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx Regards Andrew
October 19th, 2010 2:43pm

Hi. I had the same problem but with netbeans which built recursive folders with the root given name. I used the name “mermelada” under my c:\temp\ folder. I had thousands (at least) of c:\temp\mermelada\mermelada…. And so and not able to delete because the windows “name too long” message. I used the inspiration of another user of this issue and made a recupera2.bat with the following content ren c:\temp\mermelada\mermelada\mermelada x move c:\temp\mermelada\mermelada\x c:\temp\mermelada rd c:\temp\mermelada\mermelada ren c:\temp\mermelada\x mermelada recupera2.bat In a DOS window, I ran c:\recupera2.bat, leaved alone for 2 minutes and voila!... just a empty “mermalada” folder ready to be destroyed. Good luck!
Free Windows Admin Tool Kit Click here and download it now
January 20th, 2011 4:45pm

Hi. I had the same problem but with netbeans which built recursive folders with the root given name. I used the name “mermelada” under my c:\temp\ folder. I had thousands (at least) of c:\temp\mermelada\mermelada…. And so and not able to delete because the windows “name too long” message. I used the inspiration of another user of this issue and made a recupera2.bat with the following content ren c:\temp\mermelada\mermelada\mermelada x move c:\temp\mermelada\mermelada\x c:\temp\mermelada rd c:\temp\mermelada\mermelada ren c:\temp\mermelada\x mermelada recupera2.bat In a DOS window, I ran c:\recupera2.bat, leaved alone for 2 minutes and voila!... just a empty “mermalada” folder ready to be destroyed. Good luck!
January 20th, 2011 4:45pm

Hi. I had the same problem but with netbeans which built recursive folders with the root given name. I used the name “mermelada” under my c:\temp\ folder. I had thousands (at least) of c:\temp\mermelada\mermelada…. And so and not able to delete because the windows “name too long” message. I used the inspiration of another user of this issue and made a recupera2.bat with the following content ren c:\temp\mermelada\mermelada\mermelada x move c:\temp\mermelada\mermelada\x c:\temp\mermelada rd c:\temp\mermelada\mermelada ren c:\temp\mermelada\x mermelada recupera2.bat In a DOS window, I ran c:\recupera2.bat, leaved alone for 2 minutes and voila!... just a empty “mermalada” folder ready to be destroyed. Good luck!
Free Windows Admin Tool Kit Click here and download it now
January 21st, 2011 12:45am

hi, had this issue too... My eclipse, went nuts when i opened work bench and made a huge folder tree.. the problem was that folders were in this order /uge4/src/uge4/src.... So from the post above I used the bat idea. looked like this... ren C:\Users\Jacob\Desktop\Java\prog2\Uge4 x ren C:\Users\Jacob\Desktop\Java\prog2\src x move C:\Users\Jacob\Desktop\Java\prog2\x\src C:\Users\Jacob\Desktop\Java\prog2\ move C:\Users\Jacob\Desktop\Java\prog2\x\Uge4 C:\Users\Jacob\Desktop\Java\prog2\ rd C:\Users\Jacob\Desktop\Java\prog2\x /s /q test.bat renaming the folder(s) and removing them.. used /s to remove any subfolders and /q to ignore query for (Y/N). And ignored the error messages ^^ had i running for some time and done :) //Rayf
January 26th, 2011 7:24am

hi, had this issue too... My eclipse, went nuts when i opened work bench and made a huge folder tree.. the problem was that folders were in this order /uge4/src/uge4/src.... So from the post above I used the bat idea. looked like this... ren C:\Users\Jacob\Desktop\Java\prog2\Uge4 x ren C:\Users\Jacob\Desktop\Java\prog2\src x move C:\Users\Jacob\Desktop\Java\prog2\x\src C:\Users\Jacob\Desktop\Java\prog2\ move C:\Users\Jacob\Desktop\Java\prog2\x\Uge4 C:\Users\Jacob\Desktop\Java\prog2\ rd C:\Users\Jacob\Desktop\Java\prog2\x /s /q test.bat renaming the folder(s) and removing them.. used /s to remove any subfolders and /q to ignore query for (Y/N). And ignored the error messages ^^ had i running for some time and done :) //Rayf
Free Windows Admin Tool Kit Click here and download it now
January 26th, 2011 7:24am

hi, had this issue too... My eclipse, went nuts when i opened work bench and made a huge folder tree.. the problem was that folders were in this order /uge4/src/uge4/src.... So from the post above I used the bat idea. looked like this... ren C:\Users\Jacob\Desktop\Java\prog2\Uge4 x ren C:\Users\Jacob\Desktop\Java\prog2\src x move C:\Users\Jacob\Desktop\Java\prog2\x\src C:\Users\Jacob\Desktop\Java\prog2\ move C:\Users\Jacob\Desktop\Java\prog2\x\Uge4 C:\Users\Jacob\Desktop\Java\prog2\ rd C:\Users\Jacob\Desktop\Java\prog2\x /s /q test.bat renaming the folder(s) and removing them.. used /s to remove any subfolders and /q to ignore query for (Y/N). And ignored the error messages ^^ had i running for some time and done :) //Rayf
January 26th, 2011 3:24pm

If robocopy was the cause of this problem as was in my case you can simply add an exclude parameter to the robocopy command excluding the problem directory (i.e. /XD e:\directory) and make sure to also include the /purge and /e parameters (or the /MIR parameter which appears to be the same). Robocopy can then clean up the mess it created (that YOU and I told it create). If robocopy wasn't the cause and you have a version of windows that supports robocopy than you could try making the destination directory of robocopy the problem directory and then use the above parameters.
Free Windows Admin Tool Kit Click here and download it now
February 8th, 2011 7:45pm

If robocopy was the cause of this problem as was in my case you can simply add an exclude parameter to the robocopy command excluding the problem directory (i.e. /XD e:\directory) and make sure to also include the /purge and /e parameters (or the /MIR parameter which appears to be the same). Robocopy can then clean up the mess it created (that YOU and I told it create). If robocopy wasn't the cause and you have a version of windows that supports robocopy than you could try making the destination directory of robocopy the problem directory and then use the above parameters.
February 8th, 2011 7:45pm

I like the robocopy option. You don't have to install anything. I created the replica of the folder on a different drive that was totally empty. Then ran robocopy with these params. robocopy D:\folder z:\folder /Purge /E /S /R:0 /W:0 and it ran through it and cleaned it up very nicely. Thanks ITLouis!
Free Windows Admin Tool Kit Click here and download it now
April 13th, 2011 9:35pm

I like the robocopy option. You don't have to install anything. I created the replica of the folder on a different drive that was totally empty. Then ran robocopy with these params. robocopy D:\folder z:\folder /Purge /E /S /R:0 /W:0 and it ran through it and cleaned it up very nicely. Thanks ITLouis!
April 13th, 2011 9:35pm

At a command prompt, use "dir /x" to get the short name for the directory - then do an RMDIR /s on that.
Free Windows Admin Tool Kit Click here and download it now
April 25th, 2011 5:42pm

At a command prompt, use "dir /x" to get the short name for the directory - then do an RMDIR /s on that.
April 25th, 2011 5:42pm

At a command prompt, use "dir /x" to get the short name for the directory - then do an RMDIR /s on that.
Free Windows Admin Tool Kit Click here and download it now
April 26th, 2011 12:42am

Thanks Ceasar! I've been recently having the same issue. I reinstalled windows 7, I just wanted to delete the "windows.old" file that it creates for you with all your previous files prior to reinstall. It eventually gave me the same msg "cant delete folder, dest path too long". But it also said the folder was empty. I tried your suggestion above & worked like a charm. Awesome! Chris
April 26th, 2011 10:53pm

Thanks Ceasar! I've been recently having the same issue. I reinstalled windows 7, I just wanted to delete the "windows.old" file that it creates for you with all your previous files prior to reinstall. It eventually gave me the same msg "cant delete folder, dest path too long". But it also said the folder was empty. I tried your suggestion above & worked like a charm. Awesome! Chris
Free Windows Admin Tool Kit Click here and download it now
April 26th, 2011 10:53pm

Thanks Ceasar! I've been recently having the same issue. I reinstalled windows 7, I just wanted to delete the "windows.old" file that it creates for you with all your previous files prior to reinstall. It eventually gave me the same msg "cant delete folder, dest path too long". But it also said the folder was empty. I tried your suggestion above & worked like a charm. Awesome! Chris
April 27th, 2011 5:53am

FYI, I just had the same problem. I was successful simply moving the file with the long filename to the trashcan and deleting it! Worked great. And much quicker than anything else.
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2011 12:54pm

FYI, I just had the same problem. I was successful simply moving the file with the long filename to the trashcan and deleting it! Worked great. And much quicker than anything else.
July 2nd, 2011 12:54pm

FYI, I just had the same problem. I was successful simply moving the file with the long filename to the trashcan and deleting it! Worked great. And much quicker than anything else.
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2011 7:54pm

Unfortunately, 'rm -rf foldername' within Cygwin did not do it. It still says: rm: cannot remove `username/AppData/Local/Application Data/bla bla bla' Also, 'cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername' did not work either (tried it first actually). It just caused my disk I/O to peg and freeze up the system. Had to hold down power. Any other suggestions (short of reformatting)? Edit: ok, wait. I tried the Cygwin command again and this time it worked. Ok, well, thanks.
November 16th, 2011 8:41pm

Unfortunately, 'rm -rf foldername' within Cygwin did not do it. It still says: rm: cannot remove `username/AppData/Local/Application Data/bla bla bla' Also, 'cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername' did not work either (tried it first actually). It just caused my disk I/O to peg and freeze up the system. Had to hold down power. Any other suggestions (short of reformatting)?
Free Windows Admin Tool Kit Click here and download it now
November 17th, 2011 11:57am

I finally deleted all of the folders by drilling down to the almost endless copies of Application Data and moving subsequent levels to the root of the D:\ and deleting piece by piece. I have no idea how those copies were made in the first place, and secondly, why Windows makes it so hard to delete such a nasty, unwieldy folder structure. Ugh! Brian Hall www.bhall.com next time it happens try this At a command prompt with elevated level (Start -> type cmd -> rightclick cmd > run as administrator) try the following: cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername This command should delete any folder whatsoever ceasar, CES Free Tech Help Awesome trick. Thanks!
December 8th, 2011 9:07am

I finally deleted all of the folders by drilling down to the almost endless copies of Application Data and moving subsequent levels to the root of the D:\ and deleting piece by piece. I have no idea how those copies were made in the first place, and secondly, why Windows makes it so hard to delete such a nasty, unwieldy folder structure. Ugh! Brian Hall www.bhall.com next time it happens try this At a command prompt with elevated level (Start -> type cmd -> rightclick cmd > run as administrator) try the following: cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername This command should delete any folder whatsoever ceasar, CES Free Tech Help Awesome trick. Thanks!
Free Windows Admin Tool Kit Click here and download it now
December 8th, 2011 9:07am

I finally deleted all of the folders by drilling down to the almost endless copies of Application Data and moving subsequent levels to the root of the D:\ and deleting piece by piece. I have no idea how those copies were made in the first place, and secondly, why Windows makes it so hard to delete such a nasty, unwieldy folder structure. Ugh! Brian Hall www.bhall.com next time it happens try this At a command prompt with elevated level (Start -> type cmd -> rightclick cmd > run as administrator) try the following: cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername This command should delete any folder whatsoever ceasar, CES Free Tech Help Awesome trick. Thanks!
December 9th, 2011 8:56am

I like the robocopy option. You don't have to install anything. I created the replica of the folder on a different drive that was totally empty. Then ran robocopy with these params. robocopy D:\folder z:\folder /Purge /E /S /R:0 /W:0 and it ran through it and cleaned it up very nicely. Thanks ITLouis! Brilliant - using robocopy to fix it's own mess works very well indeed. Tried this, but did not work: cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername Also, cygwin solution might work (did not try), but the installation is way too complex and massive overkill. The robocopy purge is an elegant and efficient method. Well done ITLOUIS for the idea, and Jason7237 for the command line example. Finally, thanks for the /XJ tip - prevention is better than cure :)
Free Windows Admin Tool Kit Click here and download it now
December 29th, 2011 4:31pm

Trying Windows Explorer or FAR to resolve path too long problem? Check out latest Long Path Tool Download latest path too long fixer http://longpathtool.com/
January 3rd, 2012 7:29am

Trying Windows Explorer or FAR to resolve path too long problem? Check out latest Long Path Tool Download latest path too long fixer http://longpathtool.com/ Steer clear of this one... looks like their software might work (didn't bother trying), but they are looking for you to sell your first born to pay for it. For a single non-commercial license, expect to pony out $197 which includes "LIFETIME updates FOR FREE" (quoting their homepage verbatim). Looks and smells like spam. There are plenty of free alternatives which are easy to access and use. Meh.
Free Windows Admin Tool Kit Click here and download it now
January 7th, 2012 2:32am

Trying Windows Explorer or FAR to resolve path too long problem? Check out latest Long Path Tool Download latest path too long fixer http://longpathtool.com/ Steer clear of this one... looks like their software might work (didn't bother trying), but they are looking for you to sell your first born to pay for it. For a single non-commercial license, expect to pony out $197 which includes "LIFETIME updates FOR FREE" (quoting their homepage verbatim). Looks and smells like spam. There are plenty of free alternatives which are easy to access and use. Meh.
January 7th, 2012 2:32am

Trying Windows Explorer or FAR to resolve path too long problem? Check out latest Long Path Tool Download latest path too long fixer http://longpathtool.com/ Steer clear of this one... looks like their software might work (didn't bother trying), but they are looking for you to sell your first born to pay for it. For a single non-commercial license, expect to pony out $197 which includes "LIFETIME updates FOR FREE" (quoting their homepage verbatim). Looks and smells like spam. There are plenty of free alternatives which are easy to access and use. Meh.
Free Windows Admin Tool Kit Click here and download it now
January 10th, 2012 2:23am

hello just met this problem and i tried to use LongPathTool working 100%
January 10th, 2012 6:20am

Actually http://longpathtool.com/ has a trojan that will attack your computer. I hope that you have a good virus scanner if you want to visit that. It would also be nice if Microsoft would clean up this thread. I've reported it now.
Free Windows Admin Tool Kit Click here and download it now
January 29th, 2012 1:00pm

try with LongPathTool it is exactly for your situation. its easy to use program for deleting folders,files etc. that "can't be deleted" :) http://Longpathtool.com/
March 3rd, 2012 2:44pm

There is another easy way. If you use a development tool like Eclipse or any other Java IDE (most of them are designed to handle long deep file structure due to java packaging), and create a project at the base location of the folder's contents that you want to delete. It should recursively include all your files in the project. Now just right click (from eclipse) and delete (and make sure 'delete contents') option is checked if you delete at the project level.
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2012 3:26pm

Actually http://longpathtool.com/ has a trojan that will attack your computer. I hope that you have a good virus scanner if you want to visit that. It would also be nice if Microsoft would clean up this thread. I've reported it now.
March 4th, 2012 4:49am

I had the similiar problem and finally I found solution: http://LongPathTool.com
Free Windows Admin Tool Kit Click here and download it now
March 14th, 2012 7:27am

I had the similiar problem and finally I found solution: http://LongPathTool.com
March 14th, 2012 7:27am

I had the similiar problem and finally I found solution: http://LongPathTool.com
Free Windows Admin Tool Kit Click here and download it now
March 24th, 2012 7:16am

From the command prompt this works the best. On the folder just use this command and all files under the directorys gets deleted including the long file names. Then you can simply delete all the folders using windows delete. del /F /S /Q /A "Your Directory"
May 4th, 2012 4:52pm

From the command prompt this works the best. On the folder just use this command and all files under the directorys gets deleted including the long file names. Then you can simply delete all the folders using windows delete. del /F /S /Q /A "Your Directory"
Free Windows Admin Tool Kit Click here and download it now
May 4th, 2012 4:52pm

From the command prompt this works the best. On the folder just use this command and all files under the directorys gets deleted including the long file names. Then you can simply delete all the folders using windows delete. del /F /S /Q /A "Your Directory"
May 4th, 2012 4:52pm

If robocopy was the cause of this problem as was in my case you can simply add an exclude parameter to the robocopy command excluding the problem directory (i.e. /XD e:\directory) and make sure to also include the /purge and /e parameters (or the /MIR parameter which appears to be the same). Robocopy can then clean up the mess it created (that YOU and I told it create). If robocopy wasn't the cause and you have a version of windows that supports robocopy than you could try making the destination directory of robocopy the problem directory and then use the above parameters. Genious That saves alot of time - Cheers
Free Windows Admin Tool Kit Click here and download it now
May 24th, 2012 10:50am

If robocopy was the cause of this problem as was in my case you can simply add an exclude parameter to the robocopy command excluding the problem directory (i.e. /XD e:\directory) and make sure to also include the /purge and /e parameters (or the /MIR parameter which appears to be the same). Robocopy can then clean up the mess it created (that YOU and I told it create). If robocopy wasn't the cause and you have a version of windows that supports robocopy than you could try making the destination directory of robocopy the problem directory and then use the above parameters. Genious That saves alot of time - Cheers
May 24th, 2012 10:50am

If robocopy was the cause of this problem as was in my case you can simply add an exclude parameter to the robocopy command excluding the problem directory (i.e. /XD e:\directory) and make sure to also include the /purge and /e parameters (or the /MIR parameter which appears to be the same). Robocopy can then clean up the mess it created (that YOU and I told it create). If robocopy wasn't the cause and you have a version of windows that supports robocopy than you could try making the destination directory of robocopy the problem directory and then use the above parameters. Genious That saves alot of time - Cheers
Free Windows Admin Tool Kit Click here and download it now
May 24th, 2012 10:52am

I like the robocopy option. You don't have to install anything. I created the replica of the folder on a different drive that was totally empty. Then ran robocopy with these params. robocopy D:\folder z:\folder /Purge /E /S /R:0 /W:0 and it ran through it and cleaned it up very nicely. Thanks ITLouis! Unfortunately this didn't work for me. Robocopy went into another infinite loop copying files over and over.
May 27th, 2012 5:28pm

I like the robocopy option. You don't have to install anything. I created the replica of the folder on a different drive that was totally empty. Then ran robocopy with these params. robocopy D:\folder z:\folder /Purge /E /S /R:0 /W:0 and it ran through it and cleaned it up very nicely. Thanks ITLouis! Unfortunately this didn't work for me. Robocopy went into another infinite loop copying files over and over.
Free Windows Admin Tool Kit Click here and download it now
May 27th, 2012 5:28pm

I like the robocopy option. You don't have to install anything. I created the replica of the folder on a different drive that was totally empty. Then ran robocopy with these params. robocopy D:\folder z:\folder /Purge /E /S /R:0 /W:0 and it ran through it and cleaned it up very nicely. Thanks ITLouis! Unfortunately this didn't work for me. Robocopy went into another infinite loop copying files over and over.
May 27th, 2012 5:30pm

Just had the same problem and the answer provided would have worked after some effort. The problem is that I am lazy so I implemeted this solution. I used Robocopy to copy a blank folder that I had just created over the folder that I had issues with deleting. Basically "robocopy C:\(Blank File) C:\(Problem File) /Purge /E /S /r:0 /w:0" I dont think that the /w:0 is needed but I was frustrated so I threw everything I had at it. The end result was the directories intact but empty..so they could finally be deleted at the root. whew.. Hope this helps. I know it was driving me up the wall..Who needs 15 AppData folders anyhow?
Free Windows Admin Tool Kit Click here and download it now
June 12th, 2012 6:06pm

Use CygWin (Linux Emulator for Windows) and use "rm -fR [path]". Work perfectly.
July 5th, 2012 7:51am

Use CygWin (Linux Emulator for Windows) and use "rm -fR [path]". Work perfectly.
Free Windows Admin Tool Kit Click here and download it now
July 5th, 2012 7:55am

next time it happens try this At a command prompt with elevated level (Start -> type cmd -> rightclick cmd > run as administrator) try the following: cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername This command should delete any folder whatsoever ceasar, CES Free Tech Help Nope, here's what I get: D:\>cacls "D:\Application Data" /T /G Everyone:F Are you sure (Y/N)?y processed dir: D:\Application Data processed dir: D:\Application Data\Application Data processed dir: D:\Application Data\Application Data\Application Data processed dir: D:\Application Data\Application Data\Application Data\Application Data processed dir: D:\Application Data\Application Data\Application Data\Application Data\Application Data processed dir: D:\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data <-snip-> processed dir: D:\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Applic ation Data\Application Data\Application Data\Application Data\Application Data\A pplication Data\Application Data The data area passed to a system call is too small. D:\>rmdir /s /q "D:\Application Data" The path D:\Application Data\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC ~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLI C~1\APPLIC~1\APPLIC~1\APPLIC~1\Apps\2.0\Data\CJ1REALM.16N\ZX29EXKD.LK4\ADDIVS~1. 000\Data\140475~1.100\USER~1.CON is too long. <-snip->
July 8th, 2012 10:10pm

next time it happens try this At a command prompt with elevated level (Start -> type cmd -> rightclick cmd > run as administrator) try the following: cacls D:\Foldername /T /G Everyone:F rmdir /s /q D:\Foldername This command should delete any folder whatsoever ceasar, CES Free Tech Help Nope, here's what I get: D:\>cacls "D:\Application Data" /T /G Everyone:F Are you sure (Y/N)?y processed dir: D:\Application Data processed dir: D:\Application Data\Application Data processed dir: D:\Application Data\Application Data\Application Data processed dir: D:\Application Data\Application Data\Application Data\Application Data processed dir: D:\Application Data\Application Data\Application Data\Application Data\Application Data processed dir: D:\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data <-snip-> processed dir: D:\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Applic ation Data\Application Data\Application Data\Application Data\Application Data\A pplication Data\Application Data The data area passed to a system call is too small. D:\>rmdir /s /q "D:\Application Data" The path D:\Application Data\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC ~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLI C~1\APPLIC~1\APPLIC~1\APPLIC~1\Apps\2.0\Data\CJ1REALM.16N\ZX29EXKD.LK4\ADDIVS~1. 000\Data\140475~1.100\USER~1.CON is too long. <-snip->
Free Windows Admin Tool Kit Click here and download it now
July 8th, 2012 10:10pm

I was needed to move the folder with the Eclipse from my work computer to home, at work, I packed a folder in the zip archive and unpack at home just right where it should have been. At the same time if I try to move the already unpacked folder, I get this error.
August 3rd, 2012 7:49pm

I was needed to move the folder with the Eclipse from my work computer to home, at work, I packed a folder in the zip archive and unpack at home just right where it should have been. At the same time if I try to move the already unpacked folder, I get this error.
Free Windows Admin Tool Kit Click here and download it now
August 3rd, 2012 7:51pm

http://www.purgeie.com/delinv/index.htm this small app was able to delete the folders when everything else in this thread failed. There were 9000+ folders of 'Application Data' in a user folder due to a robocopy. It allows 3 actions and a 15 day trial, but all I needed was 1 action and about 30 seconds of deletion. I spent almost 3 hours trying to delete those pesky folders until I found that tool. Good Luck!
September 10th, 2012 4:32pm

http://www.purgeie.com/delinv/index.htm this small app was able to delete the folders when everything else in this thread failed. There were 9000+ folders of 'Application Data' in a user folder due to a robocopy. It allows 3 actions and a 15 day trial, but all I needed was 1 action and about 30 seconds of deletion. I spent almost 3 hours trying to delete those pesky folders until I found that tool. Good Luck!
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2012 4:35pm

All you need to do is to simply drag and drop error encountered files and folders in this tool, and then select the operation you want to perform i.e Move, Rename or Delete. This tool will then automatically execute that particular operation on next boot. Cannot Delete File helped me in this situation. Thanks!
September 18th, 2012 10:55pm

All you need to do is to simply drag and drop error encountered files and folders in this tool, and then select the operation you want to perform i.e Move, Rename or Delete. This tool will then automatically execute that particular operation on next boot. Cannot Delete File helped me in this situation. Thanks!
Free Windows Admin Tool Kit Click here and download it now
September 18th, 2012 10:58pm

Had the same problem, this allowed me to delete it. open command prompt and navigate to the top level directory the folder is located, then type: RD /S /Q FOLDERNAMEHERE and press enter. this command removes the directory and all the files without prompting you.
October 16th, 2012 8:47am

At a command prompt, use "dir /x" to get the short name for the directory - then do an RMDIR /s on that. THIS ABSOLUTELY WORKS PERFECT. 20 YEARS IN THE BIZ AND I PROMISE THIS WORK IN NANO SECONDS!
Free Windows Admin Tool Kit Click here and download it now
October 20th, 2012 1:33pm

At a command prompt, use "dir /x" to get the short name for the directory - then do an RMDIR /s on that. THIS ABSOLUTELY WORKS PERFECT. 20 YEARS IN THE BIZ AND I PROMISE THIS WORK IN NANO SECONDS! I think you should unpropose your contribution as an answer because it does not work at all, as the following sequence of commands will demonstrate: cd /c c:\ for /L %a in (1,1,40) do md TestFolder & cd TestFolder subst T: %CD% T: for /L %a in (1,1,40) do md TestFolder & cd TestFolder cd /d c:\ dir /x (you probably see this 8.3 name: TESTFO~1) rd /s TESTFO~1 You will now get a "path too long" error message. By the way - saying that your method works in nanoseconds implies that you have a processor frequency of several Gigahertz . .
October 20th, 2012 1:51pm

Yes! This did the trick. I tried all the other options listed here too. I had multiple \Application Data\Application Data\.... folders nested. longpathtool.com may work too. Don't know who said it was a Trojan but I find that hard to believe. I've scanned the files I've downloaded and got nothing. The site doesn't smell fishy either. If they were pushing an infected file I'd be surprised. http://www.purgeie.com/delinv/index.htm worked great! Unfortunately I used all three of the freebies - one for my original problem and the other two for the failed robocopy cleanup attempts :(
Free Windows Admin Tool Kit Click here and download it now
October 26th, 2012 2:53am

I was able to MOVE [Drive]:\[Folder]\[Recursive Folder] to [Drive]:\I was then able to simply RD [Recursive Folder] /S If you're at [Drive]:\[Recursive] and maxed out, you should be able to get to the end of the line and move that endpoint to [Drive]:\[Some Folder] and RD /S it too. Then you should be able to vaporize the recursive folder to oblivion. Probably easier.
November 24th, 2012 11:50pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics